﻿using System;

namespace WhileLoop
{
    class Program
    {
        static void Main(string[] args)
        {
            if(true)
            {
                Console.WriteLine("Something");
            }

            // infinite Loop
            /*
            while (true) 
            {
                Console.WriteLine("Loop");
            }
            */

            int i = 0;

            while (i < 5)
            {
                Console.WriteLine(i);
                i = i + 1;
            }

            Console.WriteLine("End of Loop");

            while (Console.ReadLine() != "stop")
            {
                Console.WriteLine("Loop");
            }

            Console.WriteLine("End of Loop");

            Console.ReadKey();
        }
    }
}
